﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {

        //定义一个员工类，存放用户的工号、姓名、性别、学历和部门信息；
        //定义两个构造函数:
        //一个是无参构造函数，学历默认为专科；
        //一个有参构造函数，根据参数对类的属性进行初始化。
        static void Main(string[] args)
        {
            //Console.WriteLine("无参构造函数");
            //Staff s1 = new Staff();
            //s1.Id = 124356;
            //s1.Name = "李四";
            //s1.Sex = "男";
            //s1.Dept = "软件开发部";
            //s1.Test();

            Console.WriteLine("\r\n有参构造函数");
            Staff s2 = new Staff(15263,"张三","男","专科", "软件测试部");
            s2.Test();


        }
    }
}
